package com.cloudbroker.bcs.platform.dav.bizapi.service.business.upvote.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.EnumValue;
import com.cloudbroker.bcs.common.validatioin.annotation.Length;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;

/**
 * Created by wangxu13798 on 2016/10/26.
 */
public class BrokerUpvoteClickForm extends HSBCPSVO {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @NotBlank
    @Length(max = 32)
    private String openid;

    private Long broker_id;

    @NotBlank
    @EnumValue(enums = {"1","2","3"})
    private String vote_type;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getBroker_id() {
        return broker_id;
    }

    public void setBroker_id(Long broker_id) {
        this.broker_id = broker_id;
    }

    public String getVote_type() {
        return vote_type;
    }

    public void setVote_type(String vote_type) {
        this.vote_type = vote_type;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BrokerUpvoteClickForm{");
        sb.append("openid='").append(openid).append('\'');
        sb.append(", broker_id=").append(broker_id);
        sb.append('}');
        return sb.toString();
    }
}
